package com.zoujixin;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String num = scanner.next();
        for (int i = 1; i <= Integer.parseInt(num); i++) {
            String str = String.valueOf(i);
            if (str.contains("7") == true) {
                System.out.println(i + " ->" + "Whizz");
                continue;
            } else if (str.contains("5") == true) {
                System.out.println(i + " ->" + "Buzz");
                continue;
            } else if (str.contains("3") == true) {
                System.out.println(i + " ->" + "Fizz");
                continue;
            } else if (i % 3 == 0 & i % 5 == 0 & i % 7 == 0) {
                System.out.println(i + " ->" + "FizzBuzzWhizz");
                continue;
            } else if (i % 5 == 0 & i % 7 == 0) {
                System.out.println(i + " ->" + "BuzzWhizz");
                continue;
            } else if (i % 3 == 0 & i % 7 == 0) {
                System.out.println(i + " ->" + "FizzWhizz");
                continue;
            } else if (i % 3 == 0 & i % 5 == 0) {
                System.out.println(i + " ->" + "FizzBuzz");
                continue;
            } else if (i % 7 == 0) {
                System.out.println(i + " ->" + "Whizz");
                continue;
            } else if (i % 5 == 0) {
                System.out.println(i + " ->" + "Buzz");
                continue;
            } else if (i % 3 == 0) {
                System.out.println(i + " ->" + "Fizz");
                continue;
            }
            System.out.println(i + " ->" + i);
        }
    }
}
